<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('renew_manages', function (Blueprint $table) {
            $table->id();
            $table->string('customer')->default('')->comment('回访客户');
            $table->string('reason')->default('')->comment('回访原因');
            $table->string('content')->default('')->comment('回访主要内容');
            $table->tinyInteger('is_problem')->default(2)->comment('回访结果是否存在问题:1有2无');
            $table->string('descript')->default('')->comment('问题描述');
            $table->longText('images')->default('')->comment('图片证明');
            $table->tinyInteger('status')->default(1)->comment('1启用2禁用');
            $table->tinyInteger('is_transform')->default(1)->comment('1不转接2转接品控');
            $table->timestamps();
        });
        \DB::statement("ALTER TABLE `renew_manages` comment '续费回访管理'");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('renew_manages');
    }
};
